<div style="clear:both"></div>
</div>
<div id="ft">
<div style=" margin:auto; width:1000px">
	<div id="ftnews">
    <table width="1000" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="250px">
    	<div style="float:left; width:250px; font-weight:bold; color:#FFF; font-size:12px">Thông tin công ty</div>
        <div style="float:left; width:230px">
        <ul style="font-size:12px; margin:auto; padding:0px; color:#FFF">
        <li style="margin-left:12px; margin-top:5px"><a style="color:#FFF" href="">Giới thiệu</a></li>
         <li style="margin-left:12px; margin-top:5px"><a style="color:#FFF" href="">Tin tức hoạt động</a></li>
         <li style="margin-left:12px; margin-top:5px"><a style="color:#FFF" href="">Tuyển dụng</a></li>
         <li style="margin-left:12px; margin-top:5px"><a style="color:#FFF" href="">Liên hệ</a></li>
        </ul>
        </div>
    </td>
    <td width="250px">
    <div style="float:left; width:250px; font-weight:bold; color:#FFF; font-size:12px">Thông tin công ty</div>
        <div style="float:left; width:230px">
        <ul style="font-size:12px; margin:auto; padding:0px; color:#FFF">
        <li style="margin-left:12px; margin-top:5px"><a style="color:#FFF" href="">Giới thiệu</a></li>
         <li style="margin-left:12px; margin-top:5px"><a style="color:#FFF" href="">Tin tức hoạt động</a></li>
         <li style="margin-left:12px; margin-top:5px"><a style="color:#FFF" href="">Tuyển dụng</a></li>
         <li style="margin-left:12px; margin-top:5px"><a style="color:#FFF" href="">Liên hệ</a></li>
        </ul>
        </div>
    </td>
    <td width="250px">
    <div style="float:left; width:250px; font-weight:bold; color:#FFF; font-size:12px">Thông tin công ty</div>
        <div style="float:left; width:230px">
        <ul style="font-size:12px; margin:auto; padding:0px; color:#FFF">
        <li style="margin-left:12px; margin-top:5px"><a style="color:#FFF" href="">Giới thiệu</a></li>
         <li style="margin-left:12px; margin-top:5px"><a style="color:#FFF" href="">Tin tức hoạt động</a></li>
         <li style="margin-left:12px; margin-top:5px"><a style="color:#FFF" href="">Tuyển dụng</a></li>
         <li style="margin-left:12px; margin-top:5px"><a style="color:#FFF" href="">Liên hệ</a></li>
        </ul>
        </div>
    </td>
    <td width="250px">
    <div style="float:left; width:250px; font-weight:bold; color:#FFF; font-size:12px">Thông tin công ty</div>
        <div style="float:left; width:230px">
        <ul style="font-size:12px; margin:auto; padding:0px; color:#FFF">
        <li style="margin-left:12px; margin-top:5px"><a style="color:#FFF" href="">Giới thiệu</a></li>
         <li style="margin-left:12px; margin-top:5px"><a style="color:#FFF" href="">Tin tức hoạt động</a></li>
         <li style="margin-left:12px; margin-top:5px"><a style="color:#FFF" href="">Tuyển dụng</a></li>
         <li style="margin-left:12px; margin-top:5px"><a style="color:#FFF" href="">Liên hệ</a></li>
        </ul>
        </div>
    </td>
  </tr>
</table>

    </div>
    <div id="ftcontent">
    
    <span style="font-size:12px; color:#FFF">
   <b>CÔNG TY LẬP TRÌNH DREAM COME TRUE</b><br />
Add : Đặng Lộ - Phường 13 - Quận Tân Bình - Thành phố Hồ Chí Minh<br />
Tel : 01668911560   Hotline: 01668911560 (Mr Hiếu)<br />
Facebook : www.facebook.com/Demen.Sieuquay<br/>
Skype : hoang.hieu91 <br/>
Email: programming.iter@gmail.com
</span>
    
    </div>
</div>
<div style="clear:both"></div>
</div>
<!----LE CSS-->
<link rel="stylesheet" href="style/reveal/reveal.css">
<style>
<!--
.ui-effects-transfer {
border: 1px dotted black;
}
-->
</style>

<style>
#loader_image {
  position: fixed;
  right: 50%;
  top: 50%;
  display:none;
  width: 8em;
  margin-top: -2.5em;
}
</style>

<style type="text/css" >
* {margin: 0; padding: 0}

div#loginArea h1 {
font-size: 14px;
background: #3883cc;
color: white;
text-align: center;
-moz-border-radius: 5px 5px 0px 0px;

}

div#mainNav {
width: 228px;
overflow: visible;
}

div#mainNav h1 {
font-size: 14px;
background: #3883cc;
color: white;
text-align: center;
-moz-border-radius: 5px 5px 0px 0px;

}

div#mainNav ul {
list-style: none !important;
border: 2px solid #bccbd8;
}

div#mainNav ul li {
position: relative;
border-bottom: 1px solid #bccbd8;
margin: 0 !important;
width:222px;
list-style:none !important;

}

div#mainNav ul li a {
color: #1e5b7e;
text-decoration: none;
padding: 5px;
}

div#mainNav ul li a:hover {
text-decoration: underline;
}

div#mainNav ul li ul {
position: absolute;
top: -1px;
right: 222px;
display: none;
background:#FFF !important;
padding:0;
}

div#mainNav ul li:hover ul {
display: block;
}
div#mainNav ul li ul li:last-child{ border:none;}
</style>

<!--LE JS-->
<!--<script src="style/js/sliderengine/jquery.js"></script>-->
<script src="style/js/sliderengine/amazingslider.js"></script>
<script src="style/js/sliderengine/initslider-1.js"></script>
<script src="style/reveal/jquery.reveal.js" type="text/javascript"></script>

<script>
$(document).ready(function(){
	$("div.amazingslider-watermark-0").hide();
	$("#loader_image").hide();
});

function doLogin(){
	if($("#username").val()=="" || $("#password").val()==""){
			$(".errorShow").html("Please fill the empty field !");
		}else{
			$.ajax({
					url : "act/doLogin.php",
					data : $("#loginForm").serialize(),
					dataType : "json",
					type : "POST",
					success : function(response){
						if(response=="0"){
							$(".errorShow").html("Username or Password is not correct !");
							}else{
								location.reload();
							}
					}
				});
			}
}

function doRegister(){
	if($("#rg_username").val()=="" || $("#rg_password").val()=="" || $("#rg_repeat_password").val()=="" || $("#rg_email").val()==""){
			$(".errorMessageRegister").html("Please fill the empty field !");
		}else{
			if($("#rg_password").val()!=$("#rg_repeat_password").val()){
				$(".errorMessageRegister").html("Password and Repeat password is not the same !");
				}else{
					
					$.ajax({
							url : "act/doRegister.php",
							data : $("#frRegister").serialize(),
							dataType : "json",
							type : "POST",
							beforeSend: function() {
								$(".errorMessageRegister").html("Processing...");
				       		},
							success : function(response){
								if(response=="0"){
									$(".errorMessageRegister").html("This account already exist !");
									}else{
										location.reload();
									}
							}
						});
				}
			}
}

function addToCart(object){
	
	var product_id = $(object).attr("p_id");
	$.ajax({
		url : "act/addToCart.php",
		type : "POST",
		data : "product_id="+product_id,
		dataType : "json",
		beforeSend: function() {
			 $("#loader_image").show();
   		},
   	complete: function(){
   		 $("#loader_image").delay(1000).fadeOut();
   	  },
		success : function(response){
			$("#p_num").html(response);
		}
	
		});
}
function goToPage(){
	window.location.href = "index.php";
}
function saveCart(){
    var data_cart = $("#frCart").serialize();
    alert(data_cart);
    $.ajax({
      url : "act/saveCart.php",
      type : "POST",
      data : data_cart,
      dataType : "json",
      beforeSend: function() {
          $("#loader_image").show();
        },
      complete: function(){
          $("#loader_image").delay(1000).fadeOut();
        },
      success : function(response){
        if(response==1){
				var cfirm = confirm("Bạn đã đặt hàng thành công ! Chúng tôi sẽ liên lạc với bạn sớm nhất có thể");
				if(cfirm){
						window.location ="act/unsetCart.php";
					}
            }    
		
      }
  
    });
}
</script>
</body>
</html>
